package com.zztl.infiniteBand.ui.view.recycleview

/**
 * @desc
 * @auth ${user}
 * @time 2018/7/19  11:30
 */
class GroupInfo(// Header 的 title
        var title: String?)//        this.mGroupID = groupId;
{
    //组号
    var groupID: Int = 0
    //ItemView 在组内的位置
    private var position: Int = 0
    // 组的成员个数
    private var mGroupLength: Int = 0

    val isFirstViewInGroup: Boolean
        get() = position == 0

    val isLastViewInGroup: Boolean
        get() = position == mGroupLength - 1 && position >= 0

    fun setPosition(position: Int) {
        this.position = position
    }

    fun setGroupLength(groupLength: Int) {
        this.mGroupLength = groupLength
    }
}
